/*

* ------------------------------------------------------------------------
* ------------------------------------------------------------------------
* |     Smart-Shop开源商城系统/ Java商城-首选电商平台系统 请务必保留此注释头信息
* |     开源地址: https://gitee.com/ningbo-qishan/gruul-mall
* ------------------------------------------------------------------------
* ------------------------------------------------------------------------
* |     可正常分享和学习源码,未经授权 不可商用！
* |     商业版中台购买/开源版商业授权 联系技术客服
* |     官网:  https://www.73app.cn/
* ------------------------------------------------------------------------
* ------------------------------------------------------------------------
* |     Copyright (c) 2016-2999 宁波启山智软科技有限公司
* |     版权所有 ,侵权必究！
* ------------------------------------------------------------------------

*/
package com.medusa.gruul.platform.api.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;

import java.time.LocalDateTime;

import com.medusa.gruul.common.data.base.BaseNoTenantEntity;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 关系迁移日志表
 * </p>
 *
 * @author whh
 * @since 2020-10-04
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("t_agent_transfer_log")
@ApiModel(value = "AgentTransferLog对象", description = "关系迁移日志表")
public class AgentTransferLog extends BaseNoTenantEntity {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @ApiModelProperty(value = "id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 被迁移的id
     */
    @ApiModelProperty(value = "被迁移的id")
    @TableField("info_id")
    private Long infoId;

    /**
     * 被迁移对象 1.商户 2.渠道商
     */
    @ApiModelProperty(value = "被迁移对象 1.商户 2.渠道商")
    @TableField("info_type")
    private Integer infoType;

    /**
     * 迁移对象 1-变为代理商  2-变为渠道商 3-渠道商迁移至某代理
     */
    @ApiModelProperty(value = "迁移对象 1-变为代理商  2-变为渠道商 3-渠道商迁移至某代理")
    @TableField("to_type")
    private Integer toType;

    /**
     * 迁移后的对象id
     */
    @ApiModelProperty(value = "迁移后的对象id")
    @TableField("to_id")
    private Long toId;

    /**
     * 迁移时间
     */
    @ApiModelProperty(value = "迁移时间")
    @TableField("transfer_time")
    private LocalDateTime transferTime;


}
